import React from 'react'
import './Group.less'
import {$pre} from '../../../../http/http'
import { Link } from 'react-router-dom';
export default function Group(props) {
    let {groupList} = props;
    console.log('groupList',groupList);
  return (
    <div className='group'>
        <h3>万人团</h3>
        <div className="list">
            {groupList.map(item=>{
              return (<Link to={`/detail/${item.id}/2` } className="item" key={item.id}>
                  <img src={$pre + item.img} alt="" />
                  <p>{item.goodsname}</p>
                  <p className='price'>￥{item.price}</p>
              </Link>)
            })}
        </div>
    </div>
  )
}
